package com.ybb.vue.domain.dto;

import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UpdateUserPasswordDto {
    @NotBlank(message = "用户id不能为空！")
    private String id;

    @NotBlank(message = "旧密码不能为空！")
    private String oldPassword;

    @NotBlank(message = "新密码不能为空！")
    @Size(min = 6,max = 16,message = "密码长度为6～16个字符")
    private String password;
}
